<%@ page language="java"  pageEncoding="UTF-8" contentType="text/html; charset=utf-8" %>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>客户资料新建</title>
<link href="${pageContext.request.contextPath}/ui/css/style_cn.css" rel="stylesheet" type="text/css">
<script src="${pageContext.request.contextPath}/ui/js/win.js" type="text/javascript"></script>

<!--处理日期 开始 -->
<script src="${pageContext.request.contextPath}/ui/js/jquery-1.4.2.js" type="text/javascript"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/ui/js/date_input/jquery.datepick.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/ui/js/date_input/jquery.datepick-zh-CN.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/ui/js/date_input/calendar.js"></script>
<link rel="stylesheet" href="${pageContext.request.contextPath}/ui/js/date_input/jquery.datepick.css" type="text/css">
<!--处理日期结束  -->

<script type="text/javascript">
	function save2Add(){
	    window.location="${pageContext.request.contextPath}/crm/customer/base/add.jsp";
	}

	function save2Edit(){
		window.location="${pageContext.request.contextPath}/crm/customer/base/main.jsp"
	}
</script>

</head>

<body>
<form name="companyForm" method="post" action="${pageContext.request.contextPath}/companyAction_save.do">
<input type="hidden" name="mtype" value="customer">
<!-- 保存并新建 flag=add  保存edit -->
<input type="hidden"  id="flag"  name="flag" value="edit">
<div class="mtitle">
	<div class="mtitle-row">&nbsp;</div>
	客户-新建
</div>
<br>
<div class="control">
	<button type='button' class='button' onMouseOver="this.className='button_over';" onMouseOut="this.className='button';" 
		   onClick="save2Edit()">
	      <img src="${pageContext.request.contextPath}/ui/images/button/baocun.png" border='0' align='absmiddle'>&nbsp;保存</button>
	<button type='button' class='button' onMouseOver="this.className='button_over';" onMouseOut="this.className='button';"  onClick="save2Add()">
	      <img src="${pageContext.request.contextPath}/ui/images/button/baocunbxj.png" border='0' align='absmiddle'>&nbsp;保存并新建</button>
	<button type='button' class='button' onMouseOver="this.className='button_over';" onMouseOut="this.className='button';"  onClick="">
		  <img src="${pageContext.request.contextPath}/ui/images/button/fanhui.png" border='0' align='absmiddle'>&nbsp;返回</button>
    <span class="remarkText">保存后可新建联系人及联系记录</span>
</div>

<table width="100%" border="0" cellspacing="0" class="tabForm">
  <tr>
    <th colspan="4" class="th_head">
		<div id="menuArrow1" style="background:url(${pageContext.request.contextPath}/ui/images/down.gif) no-repeat center;float:left;">&nbsp;</div>
		<div id="menuTitle1" style="font-weight:bold">基本信息</div>
	</th>
  </tr>
  <tr>
  	<td>
		<div id="menu1">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
	
		  <tr>
			<td width="16%" class="red">客户编码：</td>
			<td width="34%">
			<input type="text" name="code" value="C-20100731-106" style="width:90%"></td>
			<td width="16%" class="red">客户名称：</td>
			<td width="34%"> <input type="text" name="name" value=""  style="width:90%"></td>
		  </tr>
		  <tr>
			<td>拼音码：</td>
			<td> <input type="text" name="pycode" value="" readonly="readonly" style="width:90%" class="disabled"></td>
			<td>客户等级：</td>
			<td><select id='grade' name='grade' style='width:90%'>
					<option value=''>------</option>
					<option value='放弃客户'>放弃客户</option>
					<option value='机会客户'>机会客户</option>
					<option value='潜在客户'>潜在客户</option>
					<option value='成交客户'>成交客户</option>
					<option value='签约客户'>签约客户</option>
					<option value='重要客户'>重要客户</option>
					</select><img border='0' align='absmiddle' src='${pageContext.request.contextPath}/ui/images/service.gif' style='cursor:hand' 
		   onClick="OpenWin('${pageContext.request.contextPath}/sys/dictionary/batchEditDetails.jsp','',500,300)"></td>
		  </tr>
		  <tr>
			<td>区域名称：</td>
			<td>
			    <select name="regionName" style="width:90%">
			          <option value="">--------</option>
			            <option value="华南">华南</option>
						<option value="华中">华中</option>
						<option value="东北">东北</option>
						<option value="华东">华东</option>
						<option value="华北">华北</option>
</select>
<img border='0' align='absmiddle' src='${pageContext.request.contextPath}/ui/images/service.gif' style='cursor:hand' 
                       onClick="OpenWin('${pageContext.request.contextPath}/batchDetailsAction.do?step=list&selectName=regionName','',500,300)">
            </td>
			<td>客户来源：</td>
			<td>
                <select name="source" style="width:90%">
                        <option value="">--------</option>
			            <option value="招标投标">招标投标</option>
						<option value="展销会议">展销会议</option>
						<option value="报刊杂志">报刊杂志</option>
						<option value="直销业务">直销业务</option>
						<option value="朋友介绍">朋友介绍</option>
						<option value="户外广告">户外广告</option>
						<option value="互联网">互联网</option>
						<option value="代理渠道">代理渠道</option>
						<option value="促销活动">促销活动</option>
						<option value="电话联系">电话联系</option>
                </select><img border='0' align='absmiddle' src='${pageContext.request.contextPath}/ui/images/service.gif' style='cursor:hand' 
			        onClick="OpenWin('${pageContext.request.contextPath}/batchDetailsAction.do?step=list&selectName=source','',500,300)">
			 </td>
		  </tr>
		  <tr>
			<td>所属行业：</td>
			<td><select id='trade' name='trade' style='width:90%'>
					<option value=''>------</option>
					<option value='政府机构'>政府机构</option>
					<option value='玩具'>玩具</option>
					<option value='服饰'>服饰</option>
					<option value='化工'>化工</option>
					<option value='机械及工业制品'>机械及工业制品</option>
             </select>
             <img border='0' align='absmiddle' src='${pageContext.request.contextPath}/ui/images/service.gif' style='cursor:hand' onClick="OpenWin('/sys/dictionary/detail.do?method=popeController&oid=trade&pid=5','',500,300)"></td>
			<td>公司规模：</td>
			<td><select id='scale' name='scale' style='width:90%'>
					<option value=''>------</option>
					<option value='300人以上'>300人以上</option>
					<option value='100至300人'>100至300人</option>
					<option value='50至100人'>50至100人</option>
					<option value='少于50人'>少于50人</option>
               </select>
               <img border='0' align='absmiddle' src='${pageContext.request.contextPath}/ui/images/service.gif'  style='cursor:hand' onClick="OpenWin('/sys/dictionary/detail.do?method=popeController&oid=scale&pid=61','',500,300)"></td>
		  </tr>
		  <tr>
			<td>省份：</td>
			<td>
			  <select name="province" onchange="showCity(this.value)" style="width:90%"><option value="">--------</option>
			         <option value="北京市">北京市</option>
<option value="上海市">上海市</option>
<option value="天津市">天津市</option>
<option value="重庆市">重庆市</option>
<option value="安徽省">安徽省</option>
<option value="福建省">福建省</option>
<option value="甘肃省">甘肃省</option>
<option value="广东省">广东省</option>
<option value="广西">广西</option>
<option value="贵州省">贵州省</option>
<option value="河北省">河北省</option>
<option value="河南省">河南省</option>
<option value="黑龙江省">黑龙江省</option>
<option value="湖北省">湖北省</option>
<option value="湖南省">湖南省</option>
<option value="吉林省">吉林省</option>
<option value="江苏省">江苏省</option>
<option value="江西省">江西省</option>
<option value="辽宁省">辽宁省</option>
<option value="内蒙古">内蒙古</option>
<option value="宁夏">宁夏</option>
<option value="青海省">青海省</option>
<option value="山东省">山东省</option>
<option value="山西省">山西省</option>
<option value="陕西省">陕西省</option>
<option value="四川省">四川省</option>
<option value="西藏">西藏</option>
<option value="新疆">新疆</option>
<option value="云南省">云南省</option>
<option value="浙江省">浙江省</option>
<option value="海南省">海南省</option>
<option value="香港">香港</option>
<option value="台湾省">台湾省</option></select>
			</td>
			<td>城市：</td>
			<td>
			  <select name="city" style="width:90%"><option value="">--------</option></select>
		    </td>
		  </tr>
		  <tr>
			<td>邮政编码：</td>
			<td><input name="postcode" type="text" id="postcode" style="width:90%" value=""></td>
		  </tr>
		  <tr>
			<td>联系地址：</td>
			<td colspan="3"><input name="address" type="text" id="address" style="width:96%" value=""></td>
			</tr>
		  <tr>
			<td>电子邮件：</td>
			<td><input name="email" type="text" id="email" style="width:90%" value=""></td>
			<td>公司网站：</td>
			<td><input name="web" type="text" id="web" style="width:90%" value=""></td>
		  </tr>
		  <tr>
			<td>电话一：</td>
			<td><input name="tel1" type="text" id="tel1" style="width:90%" value=""></td>
			<td>传真：</td>
			<td><input name="fax" type="text" id="fax" style="width:90%" value=""></td>
		  </tr>
		  <tr>
		  	<td>手机：</td>
			<td>
				<input name="mobile" type="text" id="mobile" style="width:90%" value="">
			</td>
			<td>电话二：</td>
			<td><input name="tel2" type="text" id="tel2" style="width:90%" value=""></td>
		  </tr>
		  <tr>
			<td>下次联系时间:</td>
			<td><input type='text' id='nextTouchDate' name='nextTouchDate' value='' style='width:90%' class="dateClassStyle"></td>
			<td>客户性质：</td>
			<td><select id='quality' name='quality' style='width:90%'>
<option value=''>------</option>
<option value='下属子公司'>下属子公司</option>
<option value='上级主管单位'>上级主管单位</option>
<option value='竞争对手'>竞争对手</option>
<option value='合作伙伴'>合作伙伴</option>
<option value='代理商'>代理商</option>
<option value='供应商'>供应商</option>
<option value='客户' selected>客户</option>
</select><img border='0' align='absmiddle' src='${pageContext.request.contextPath}/ui/images/service.gif' style='cursor:hand' onClick="OpenWin('/sys/dictionary/detail.do?method=popeController&oid=quality&pid=46','',500,300)"></td>
		  </tr>
		  <tr>
			<td valign="top">备注：</td>
			<td colspan="3"><textarea name="remark" rows="4" id="remark" style="width:96%" ></textarea></td>
		  </tr>
		  </table>
		</div>
	</td>
  </tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" class="tabForm">
  <tr>
    <th colspan="4" class="th_head">
		<div id="menuArrow2" style="background:url(${pageContext.request.contextPath}/ui/images/down.gif) no-repeat center;float:left;">&nbsp;</div>
		<div id="menuTitle2" style="font-weight:bold">企业信息</div>
	</th>
  </tr>
  <tr>
  	<td>
  <div id="menu2">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="16%">经营范围：</td>
			<td width="34%">
			<select id='dealin' name='dealin' style='width:90%'>
					<option value='' >------</option>
					<option value='证券/金融/投资'>证券/金融/投资</option>
					<option value='电子/电器/半导体/仪器仪表'>电子/电器/半导体/仪器仪表</option>
					<option value='计算机软件'>计算机软件</option>
					<option value='计算机硬件'>计算机硬件</option>
          </select>
<img border='0' align='absmiddle' src='${pageContext.request.contextPath}/ui/images/service.gif' style='cursor:hand' onClick="OpenWin('/sys/dictionary/detail.do?method=popeController&oid=dealin&pid=62','',500,300)"></td>
			<td width="16%">企业性质：</td>
			<td width="34%">
		   <select id='kind' name='kind' style='width:90%'>
				<option value='' >------</option>
				<option value='合资企业'>合资企业</option>
				<option value='外资企业'>外资企业</option>
				<option value='民营企业'>民营企业</option>
				<option value='国有企业'>国有企业</option>
          </select>
<img border='0' align='absmiddle' src='${pageContext.request.contextPath}/ui/images/service.gif' style='cursor:hand' onClick="OpenWin('/sys/dictionary/detail.do?method=popeController&oid=kind&pid=60','',500,300)"></td>
		  </tr>
		  <tr>
			<td>法人代表：</td>
			<td><input name="artificialPerson" type="text" id="artificialPerson" style="width:90%"></td>
			<td>注册资金：</td>
			<td><input name="registeMoney" type="text" id="registeMoney" style="width:90%"></td>
		  </tr>
		  <tr>
			<td>开户银行：</td>
			<td><input name="bank" type="text" id="bank" style="width:90%"></td>
			<td>银行账户：</td>
			<td><input name="account" type="text" id="account" style="width:90%"></td>
		  </tr>
		  <tr>
			<td>公司税号：</td>
			<td><input name="taxCode" type="text" id="taxCode" style="width:90%"></td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
  		</table>
	</div>
	</td>
	</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" class="tabForm">
  <tr>
    <th colspan="4" class="th_head">
		<div id="menuArrow3" style="background:url(${pageContext.request.contextPath}/ui/images/down.gif) no-repeat center;float:left;">&nbsp;</div>
		<div id="menuTitle3" style="font-weight:bold">其他信息</div>
	</th>
  </tr>
  <tr>
  	<td>
  <div id="menu3">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td width="16%">创建人：</td>
			<td width="34%">
			   <input type="text" name="creater" value="系统管理员" style="width:90%" class="disabled">
			</td>
			<td width="16%">创建日期：</td>
			<td width="34%">
			 <input type="text" name="createTime" value="2010-07-31 20:45:38" style="width:90%" class="disabled">
		   </td>
		  </tr>
		  <tr>
			<td>修改人：</td>
			<td>
			  <input type="text" name="updater" value="系统管理员" style="width:90%" class="disabled">
			</td>
			<td>修改日期：</td>
			<td>
			 <input type="text" name="updateTime" value="2010-07-31 20:45:38" style="width:90%" class="disabled">
		   </td>
		  </tr>
		  <tr>
			<td>所属人：</td>
			<td>
			<input type="hidden" name="ownerUser" value="1">
			<input type="text" name="dispensePerson" value="系统管理员" style="width:90%" class="disabled">
			</td>
			<td>&nbsp;</td>
			<td>&nbsp;</td>
		  </tr>
  		</table>
	</div>
	</td>
  </tr>
</table>
</form>
<script src="${pageContext.request.contextPath}/ui/js/menu.js" type="text/javascript"></script>
</body>
</html>